import React, { PureComponent } from "react";

import  Table  from 'antd/lib/Table';




export default class extends PureComponent {
  constructor(props) {
    super(props);
    this.state = {
        columns:[{
            title: '投资用户',
            dataIndex: 'investorNickname',
            key: 'investorNickname',
          }, {
            title: '投资金额',
            dataIndex: 'investAmount',
            key: 'investAmount',
          }, {
            title: '投资时间',
            dataIndex: 'investTime',
            key: 'investTime',
          }],
    };
  }
  
  componentDidMount() {
  
  }
   //销毁时解绑事件
  componentWillUnmount() {
    //重写组件的setState方法，直接返回空
    this.setState = (state,callback)=>{
      return;
    };  
  }
  
  

  render() {
    let {investrecord} = this.props
    return (
      
        <Table columns={this.state.columns} dataSource={investrecord.list} />
             
    );
  }
}
